package org.kgduyjj.test.bean;

import java.util.ArrayList;
import java.util.List;

import org.kgduyjj.toolbox.bean.BaseJson;

public class Friends extends BaseJson {
	/** */
	private static final long serialVersionUID = 1L;
	protected List<Person> contacts;

	public List<Person> getContacts() {
		return contacts;
	}

	public void setContacts(List<Person> contacts) {
		this.contacts = contacts;
	}
	
	public boolean addFriend(Person friend) {
		if (this.contacts == null) {
			this.contacts = new ArrayList<Person>();
		}
		return this.contacts.add(friend);
	}

}
